package com.example.jh352160.surfingtv.network.item;

import java.util.List;

/**
 * Created by jh352160 on 2016/8/8
 */

public class StarsightItem {

    /**
     * code : 200
     * message : OK
     * data : {"offset":0,"limit":16,"total":7,"sortField":"lastUpdate","sortOrder":"DESC","items":[{"contentId":17206,"title":"asdasd","summary":"asdasdas","imageUrl":"ert","videoUrl":null,"body":"dfsdf","contentCategory":null,"likeQuantity":3,"likeStatus":0,"contentStatus":1,"template":"1","favoriteCount":1,"favorite":0,"detailUrl":"http://app4tv.sudaotech.com/mobile/contentDetail.html?id=17206","productCount":null}]}
     */

    private String code;
    private String message;
    /**
     * offset : 0
     * limit : 16
     * total : 7
     * sortField : lastUpdate
     * sortOrder : DESC
     * items : [{"contentId":17206,"title":"asdasd","summary":"asdasdas","imageUrl":"ert","videoUrl":null,"body":"dfsdf","contentCategory":null,"likeQuantity":3,"likeStatus":0,"contentStatus":1,"template":"1","favoriteCount":1,"favorite":0,"detailUrl":"http://app4tv.sudaotech.com/mobile/contentDetail.html?id=17206","productCount":null}]
     */

    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private int offset;
        private int limit;
        private int total;
        private String sortField;
        private String sortOrder;
        /**
         * contentId : 17206
         * title : asdasd
         * summary : asdasdas
         * imageUrl : ert
         * videoUrl : null
         * body : dfsdf
         * contentCategory : null
         * likeQuantity : 3
         * likeStatus : 0
         * contentStatus : 1
         * template : 1
         * favoriteCount : 1
         * favorite : 0
         * detailUrl : http://app4tv.sudaotech.com/mobile/contentDetail.html?id=17206
         * productCount : null
         */

        private List<ItemsBean> items;

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public int getLimit() {
            return limit;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public String getSortField() {
            return sortField;
        }

        public void setSortField(String sortField) {
            this.sortField = sortField;
        }

        public String getSortOrder() {
            return sortOrder;
        }

        public void setSortOrder(String sortOrder) {
            this.sortOrder = sortOrder;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class ItemsBean {
            private int contentId;
            private String title;
            private String summary;
            private String imageUrl;
            private Object videoUrl;
            private String body;
            private Object contentCategory;
            private int likeQuantity;
            private int likeStatus;
            private int contentStatus;
            private String template;
            private int favoriteCount;
            private int favorite;
            private String detailUrl;
            private Object productCount;

            public int getContentId() {
                return contentId;
            }

            public void setContentId(int contentId) {
                this.contentId = contentId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }

            public Object getVideoUrl() {
                return videoUrl;
            }

            public void setVideoUrl(Object videoUrl) {
                this.videoUrl = videoUrl;
            }

            public String getBody() {
                return body;
            }

            public void setBody(String body) {
                this.body = body;
            }

            public Object getContentCategory() {
                return contentCategory;
            }

            public void setContentCategory(Object contentCategory) {
                this.contentCategory = contentCategory;
            }

            public int getLikeQuantity() {
                return likeQuantity;
            }

            public void setLikeQuantity(int likeQuantity) {
                this.likeQuantity = likeQuantity;
            }

            public int getLikeStatus() {
                return likeStatus;
            }

            public void setLikeStatus(int likeStatus) {
                this.likeStatus = likeStatus;
            }

            public int getContentStatus() {
                return contentStatus;
            }

            public void setContentStatus(int contentStatus) {
                this.contentStatus = contentStatus;
            }

            public String getTemplate() {
                return template;
            }

            public void setTemplate(String template) {
                this.template = template;
            }

            public int getFavoriteCount() {
                return favoriteCount;
            }

            public void setFavoriteCount(int favoriteCount) {
                this.favoriteCount = favoriteCount;
            }

            public int getFavorite() {
                return favorite;
            }

            public void setFavorite(int favorite) {
                this.favorite = favorite;
            }

            public String getDetailUrl() {
                return detailUrl;
            }

            public void setDetailUrl(String detailUrl) {
                this.detailUrl = detailUrl;
            }

            public Object getProductCount() {
                return productCount;
            }

            public void setProductCount(Object productCount) {
                this.productCount = productCount;
            }
        }
    }
}
